package com.obelisco.vista.seguridad;

import nextapp.echo2.app.Alignment;
import nextapp.echo2.app.Button;
import nextapp.echo2.app.Component;
import nextapp.echo2.app.Extent;
import nextapp.echo2.app.ResourceImageReference;
import echopointng.Calculator;
import echopointng.ContainerEx;
import echopointng.PopUp;

public class BotonMenuEmergente extends PopUp {

	//private MenuEmegente menuEmergente;
	private Button btnMenu;
	
	private ContenedorEmergente emergente;
	
	public BotonMenuEmergente() {
		super();
		
		initComponents();
	}
	
	private void initComponents() {
		btnMenu = new Button();
		btnMenu.setStyleName("Obelisco.Boton.Menu");
		setTarget(btnMenu);
		setPopUpAlwaysOnTop(true);
		setPopUpOnRollover(false);
		setPopUpAlignment(new Alignment(Alignment.RIGHT,
						Alignment.BOTTOM));
	}

	public ContenedorEmergente getEmergente() {
		return emergente;
	}

	public void setEmergente(ContenedorEmergente emergente) {
		this.emergente = emergente;
		this.emergente.setWidth(new Extent(350,Extent.PX));
		this.emergente.setHeight(new Extent(300,Extent.PX));
		setPopUp(emergente);
	}
	
}
